{% extends "shm/addressbook_department_list.html" %}
{% block employee_list %}
    <h3>{{ department_detail.name }}</h3>
    
    <h6>Телефоны:</h6>
    <p>{% for item in phone %}{{ item.number }},&nbsp;{% endfor %}</p>
    
    <h6>Руководитель:</h6>
    <dl>
    {% for item in boss %}
         <dt>     
           {{ item.boss.last_name }}  {{ item.boss.first_name }} {{ item.boss.patronymic }}
        </dt>
        <dd>
           {{ item.boss.post }}
           <p>
            {% for ph in item.phones %}
              {{ ph }},
            {% endfor %}
           </p>
        </dd>   
    {% endfor %}
    </dl>
   
    <h6>Сотрудники:</h6>
    <dl>
    {% for item in employee %}
        <dt>     
           {{ item.employee.last_name }}  {{ item.employee.first_name }} {{ item.employee.patronymic }}
        </dt>
        <dd>
           {{ item.employee.post }}
           <p>
            {% for ph in item.phones %}
              {{ ph }},
            {% endfor %}
           </p>
        </dd>
    {% endfor %}  
    </dl>
  
{% endblock %}
